package fr.starn.domoticz_widgets.JSonObject;

import java.io.Serializable;

public class DeviceProps implements Serializable{
	private String  Favorite;
	private String LastUpdate;
	private String  Name;
	private String Status;
	private String  Type;
	private String SwitchType;
	private String  TypeImg;
	private String UsedByCamera;
	private String  idx;
	
	private String  AddjMulti;
	private String  AddjValue;
	private String  BatteryLevel;
	private String  CustomImage;
	private String  Data;
	private String  HardwareID;
	private String  HardwareName;
	private String  HaveTimeout;
	private String  ID;
	private String  Notifications;
	private String  SignalLevel;
	private String  SubType;
	private String  Temp;
	private String  Timers;
	private String  Unit;
	private String  Used;
	public String getFavorite() {
		return Favorite;
	}
	public void setFavorite(String favorite) {
		Favorite = favorite;
	}
	public String getLastUpdate() {
		return LastUpdate;
	}
	public void setLastUpdate(String lastUpdate) {
		LastUpdate = lastUpdate;
	}
	public String getName() {
		return Name;
	}
	public void setName(String name) {
		Name = name;
	}
	public String getStatus() {
		return Status;
	}
	public void setStatus(String status) {
		Status = status;
	}
	public String getType() {
		if (Type==null) return "";
		return Type;
	}
	public void setType(String type) {
		Type = type;
	}
	public String getTypeImg() {
		return TypeImg;
	}
	public void setTypeImg(String typeImg) {
		TypeImg = typeImg;
	}
	public String getUsedByCamera() {
		return UsedByCamera;
	}
	public void setUsedByCamera(String usedByCamera) {
		UsedByCamera = usedByCamera;
	}
	public String getIdx() {
		return idx;
	}
	public void setIdx(String idx) {
		this.idx = idx;
	}
	public String getAddjMulti() {
		return AddjMulti;
	}
	public void setAddjMulti(String addjMulti) {
		AddjMulti = addjMulti;
	}
	public String getAddjValue() {
		return AddjValue;
	}
	public void setAddjValue(String addjValue) {
		AddjValue = addjValue;
	}
	public String getBatteryLevel() {
		return BatteryLevel;
	}
	public void setBatteryLevel(String batteryLevel) {
		BatteryLevel = batteryLevel;
	}
	public String getCustomImage() {
		return CustomImage;
	}
	public void setCustomImage(String customImage) {
		CustomImage = customImage;
	}
	public String getData() {
		return Data;
	}
	public void setData(String data) {
		Data = data;
	}
	public String getHardwareID() {
		return HardwareID;
	}
	public void setHardwareID(String hardwareID) {
		HardwareID = hardwareID;
	}
	public String getHardwareName() {
		return HardwareName;
	}
	public void setHardwareName(String hardwareName) {
		HardwareName = hardwareName;
	}
	public String getHaveTimeout() {
		return HaveTimeout;
	}
	public void setHaveTimeout(String haveTimeout) {
		HaveTimeout = haveTimeout;
	}
	public String getID() {
		return ID;
	}
	public void setID(String iD) {
		ID = iD;
	}
	public String getNotifications() {
		return Notifications;
	}
	public void setNotifications(String notifications) {
		Notifications = notifications;
	}
	public String getSignalLevel() {
		return SignalLevel;
	}
	public void setSignalLevel(String signalLevel) {
		SignalLevel = signalLevel;
	}
	public String getSubType() {
		return SubType;
	}
	public void setSubType(String subType) {
		SubType = subType;
	}
	public String getTemp() {
		if (Temp==null) return "";
		return Temp;
	}
	public void setTemp(String temp) {
		Temp = temp;
	}
	public String getTimers() {
		return Timers;
	}
	public void setTimers(String timers) {
		Timers = timers;
	}
	public String getUnit() {
		return Unit;
	}
	public void setUnit(String unit) {
		Unit = unit;
	}
	public String getUsed() {
		return Used;
	}
	public void setUsed(String used) {
		Used = used;
	}
	public String getSwitchType() {
		if (SwitchType==null) return "";
		return SwitchType;
	}
	public void setSwitchType(String switchType) {
		SwitchType = switchType;
	}
	
	public boolean isTemp(){
		return getType().startsWith("Temp");
	}
	
	public boolean isLight(){
		return getSwitchType().equals("On/Off");
	}
}
